home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form CnvMain
- Caption = "Convert Profit Chef 1.01 files to 1.02"
- Height = 1425
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 1020
- ScaleWidth = 4485
- Top = 1140
- Width = 4605
- Begin Label Label1
- Caption = "Label1"
- Height = 375
- Left = 600
- TabIndex = 0
- Top = 360
- Width = 2895
- End
- Sub Form_Load ()
- Show
- '******** Initialize Btrieve ********************
- init$ = "/m:38 /p:4096 /b:16 /u:2 /f:20 /l:20 /n:12 /t:c:\btrieve.trn"
- St% = WBtrvInit(init$)
- If St% <> 0 Then
- Msg$ = "Btrieve not initialized. Status = " + Str$(St%)
- T1% = MsgBox(Msg$, 0, "Warning!")
- Else
- Label1.Caption = "Working ... please wait..."
- ProcessRecords
- End If
- End Sub
- Sub ProcessRecords ()
- OpenIngredientFile
- If IngredientSt% = 0 Then
- FirstIngredient
- While IngredientSt% = 0
- IngredientRec.IngCaseCost = IngredientRec.IngCaseCost * 100
- UpdateIngredient
- NextIngredient
- t% = DoEvents()
- Wend
- CloseIngredientFile
- Else
- MsgBox "Ingredient File not opened successfully."
- End If
- Unload CnvMain
- End Sub
-